import request from '@/utils/request'

// 查询客户资料列表
export function listSlCustomInfo(query) {
  return request({
    url: '/projects/SlCustomInfo/list',
    method: 'get',
    params: query
  })
}

// 查询客户资料详细
export function getSlCustomInfo(infoId) {
  return request({
    url: '/projects/SlCustomInfo/' + infoId,
    method: 'get'
  })
}


// 查询客户资料根据用户id
export function getSlCustomInfoByUserId(userId) {
  return request({
    url: '/projects/SlCustomInfo/getSlCustomInfoByUserId/' + userId,
    method: 'get'
  })
}

// 新增客户资料
export function addSlCustomInfo(data) {
  return request({
    url: '/projects/SlCustomInfo',
    method: 'post',
    data: data
  })
}

// 修改客户资料
export function updateSlCustomInfo(data) {
  return request({
    url: '/projects/SlCustomInfo',
    method: 'put',
    data: data
  })
}

// 删除客户资料
export function delSlCustomInfo(infoId) {
  return request({
    url: '/projects/SlCustomInfo/' + infoId,
    method: 'delete'
  })
}
